package com.g17.virtualpetbackend.repo;

import com.g17.virtualpetbackend.entity.Vet;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;

public interface VetRepository extends Neo4jRepository<Vet,Long> {

    @Query("MATCH (n:Vet) where n.part=$part RETURN n")
    Vet findVetPart(@Param("part") String part);

}
